package edu.zqu.collegeField.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import edu.zqu.collegeField.project.dto.AreaDto;
import edu.zqu.collegeField.project.po.Area;
import edu.zqu.collegeField.project.vo.AreaVo;

import java.math.BigInteger;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 功能区 服务类
 * </p>
 *
 * @author 廖森
 * @since 2020-06-28
 */
public interface AreaService extends IService<Area> {
    List<AreaVo> get(BigInteger collegeId,//获取功能区列表
                     BigInteger schoolId,
                     String name);

    int add(Area area);//添加功能区

    AreaVo getById(BigInteger id);//获取功能区

    AreaVo getByName(BigInteger collegeId,String name);//获取功能区

    int update(Area areaUpdate);

    int delete(BigInteger id, BigInteger byWho);//删除功能区
}
